//
//  StatusNormalCell.swift
//  weibo10
//
//  Created by 猎人 on 15/10/28.
//  Copyright © 2015年 hunter. All rights reserved.
//

import UIKit

/// 原创微博
class StatusNormalCell: StatusCell {
    
    /// 微博视图模型
    override var viewModle: StatusViewModel? {
        didSet {
            pictureView.snp_updateConstraints { (make) -> Void in
                
                let offset = viewModle?.thumbnailUrls?.count > 0 ? StatusCellMagrin : 0
                make.top.equalTo(contentLabel.snp_bottom).offset(offset)
            }
        }
    }

    override func setupUI() {
        super.setupUI()
        
        pictureView.snp_makeConstraints { (make) -> Void in
            make.top.equalTo(contentLabel.snp_bottom).offset(StatusCellMagrin)
            make.left.equalTo(contentLabel.snp_left)
            make.width.equalTo(300)
            make.height.equalTo(90)

        }
        
    }
 
}
